﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Edit.Master" AutoEventWireup="true" CodeBehind="ArchiveSearch.aspx.cs" Inherits="Web.Views.ArchiveFlowView.ArchiveSearch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <script src="../../Javascript/UserControls.js" type="text/javascript"></script>
    <script type="text/javascript">
        window.onload = function () {


            var headerchk = document.getElementById("ctl00_edit_gv_SingleWellList_ctl01_ckdHeader");
            if (headerchk != null && headerchk != undefined) {
                headerchk.onclick = function () {
                    var gvData = document.getElementById("ctl00_edit_gv_SingleWellList");
                    /*
                    gridview 生成的HTML标签中对应的表格，第一行和最后一行非数据行
                    */
                    for (var i = 1; i < gvData.rows.length; i++) {
                        var check = gvData.rows[i].cells[0].getElementsByTagName("input")[1];
                        check.checked = this.checked;
                    }
                }
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="button" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="edit" runat="server">
    <div class=" datagrid" style="margin-top:5px;">
        <table cellpadding="0" cellspacing="0" width="100%"  >
            <tr>
                <td style="width: 70%; margin-left:0">
                    <input runat="server" id="txtSearchKeyword" class="search_input_text" onblur="if(this.value=='')value='- 可输入井号题名施工措施井别档号全宗号以及明细查询 -';" onfocus="if(this.value=='- 可输入井号题名施工措施井别档号全宗号以及明细查询 -')value='';" value="- 可输入井号题名施工措施井别档号全宗号以及明细查询 -" style="width: 98%;" />
                </td>
                <td>
                    <asp:DropDownList ID="ddlArchiveType" runat="server" CssClass="select">
                        <asp:ListItem Text="文书类" Value="1"></asp:ListItem>
                        <asp:ListItem Text="光盘类" Value="2"></asp:ListItem>
                        <asp:ListItem Text="科学技术研究类" Value="3"></asp:ListItem>
                        <asp:ListItem Text="建设项目类" Value="4"></asp:ListItem>
                        <asp:ListItem Text="设备仪器类" Value="5"></asp:ListItem>
                        <asp:ListItem Text="会计类" Value="6"></asp:ListItem>
                        <asp:ListItem Text="油气勘探开发类" Value="7"></asp:ListItem>
                        <asp:ListItem Text="声像类" Value="8"></asp:ListItem>
                        <asp:ListItem Text="实物类" Value="9"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    
                    <asp:Button ID="BtnSearch"  runat="server" CssClass="search_btn" OnClick="BtnSearch_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="BtnSearchByArchiveNum" Width="100" runat="server" CssClass="btn"
                      Text="按档案号查询" OnClick="BtnSearchByArchiveNum_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div id="divAgent" style=" margin-top:5px;">
        <ep:EPGridView ID="gv_ArchiveList" runat="server" Width="100%" 
            AutoGenerateColumns="False" CssClass="gridview"
            dataSortExpression="" EnableEmptyContentRender="True" 
            EnableModelValidation="True"  RowStyle-Height="15"
            HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle"  
            Goto="0" GvPageCount="0" ShowCheckBox="False"  DataKeyNames="DATAID"
            onrowdatabound="gv_ArchiveList_RowDataBound">
            <Columns>
                <asp:TemplateField  HeaderStyle-Width="4%" ItemStyle-HorizontalAlign="Center" >
                    <HeaderTemplate>
                        <asp:CheckBox ID="ckdHeader" runat="server" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HiddenField ID="hiddenDataID" runat="server" Value='<%# Eval("DataID") %>' />
                        <asp:CheckBox ID="chkID" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DataID" Visible="false" />
                <asp:BoundField HeaderText="题名" DataField="TITLE"   HeaderStyle-Width="40%" >
                 </asp:BoundField>
                 <asp:BoundField HeaderText="档号" DataField="ARCHIVENUM" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="归档单位" DataField="FILEORGID" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                
                <asp:BoundField HeaderText="密级" DataField="F_SECURITYTYPE" HeaderStyle-Width="7%"
                    ItemStyle-HorizontalAlign="Center" >
                </asp:BoundField>
                <asp:BoundField HeaderText="保密期限" DataField="F_KEEPSECURITYTIME" HeaderStyle-Width="7%"
                    ItemStyle-HorizontalAlign="Center" >
                </asp:BoundField>
            </Columns>
            
        </ep:EPGridView>
        <ep:AspNetPager SubmitButtonText=" GO " ID="aspNetPagerSearch" Height="26px"    Width="100%" CssClass="yahoo2"
                    runat="server"  PageSize="10" LayoutType="Table"
                    ShowCustomInfoSection="Right" CustomInfoClass="custom" CustomInfoStyle=" clear:both;"
                    ShowPageIndexBox="Always" SubmitButtonImageUrl="../Images/go.png" ShowPageIndex="true"
                    PageIndexBoxType="TextBox"  CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条" OnPageChanging="aspNetPagerSearch_PageChanging"
                    AlwaysShow="false">
                </ep:AspNetPager>
    </div>

    <div style="margin-top:5px; display:none;">
        <button type="reset" class="sexybutton" runat="server" id="btnAddBorrow" onclick="window.location.href='ASingleWellSearch.aspx';">
            <span><span><span class="add">添加借阅</span></span></span></button>
    </div>
</asp:Content>
